#ifndef ZP_CCLIENTLISTSERVER_H
#define ZP_CCLIENTLISTSERVER_H
#include "stdheader.h"
#include "structdef.h"
#include "CClientListListion.h"
typedef struct _CClientListServer
{
	gint port;
	GSList*SocketList;
	GMutex*SocketMutex;
	GAsyncQueue* ClientListChangeQueue;
	GAsyncQueue* UIClientListChangeQueue;
	ClientListDataMutex*ClientListData_With_Mutex;
	CClientListListion*m_CClientListListion;
}CClientListServer;
CClientListServer *CClientListServer_new();
gint CClientListServer_delete(CClientListServer*data);
gint CClientListServer_Start(CClientListServer*data);
gint CClientListServer_Close(CClientListServer*data);
gint CClientListServer_broadcast(CClientListServer*data,ClientData *clientdata);
#endif